openai

OpenAI: ChatGPT 4o

models/ChatGPT-4o

OpenAI ChatGPT 4o is continually updated by OpenAI to point to the current version of GPT 4o used by ChatGPT. It therefore differs slightly from the API version of GPT 4o in that it has additional RLHF. It is intended for research and evaluation. OpenAI notes that this model is not suited for production use cases as it may be removed or redirected to another model in the future.
Currency$USD
Input$5.00
Output$15.00
Context window128K

Generate API Key Generate your API Key to securely access IndoxHub's AI models. Integrate with OpenAI-compatible tools, run queries, and build powerful AI applications — all with a single secure key.
Endpoint
POSThttps://api.indoxhub.com/api/v1/chat/completions
Configopenai/chatgpt-4o-latest
from indoxhub import Client
 
# Initialize the client
with Client(api_key="[LOGIN TO GET API KEY]") as client:
    # Generate a chat completion
    response = client.chat(
        messages=[{"role":"system","content":"You are a helpful assistant."},{"role":"user","content":"What is machine learning and why is it important?"}],
        model="openai/chatgpt-4o-latest",
        temperature:"0.7"
    )
 
    # Print the response
    print(response["data"])